﻿using DFGK_WMS.Model.DTO;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface IDisasterLevelRepository: IBaseRepository<TDisasterLevel>
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="dto"></param>
        /// <param name="material"></param>
        /// <returns></returns>
        bool AddDisasterLevel(DisasterLevelDto dto);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="dto"></param>
        /// <param name="material"></param>
        /// <returns></returns>
        bool UpdateDisasterLevel(DisasterLevelDto dto);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        bool DelDisasterLevel(int ids);

        /// <summary>
        /// 灾情等级分页查询
        /// </summary>
        /// <param name="name"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TDisasterLevel> GetDisasterlevels(string name, int pageIndex, int pageSize, out int totalCount);

        /// <summary>
        /// 灾情物料明细分页查询
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<TDisasterMaterial> GetDisasterMaterials(int ids, int pageIndex, int pageSize, out int totalCount);

        /// <summary>
        /// 条件查询
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        TDisasterLevel Getdisasterlevel(int ids);

    }
}
